/*
 * @Description: 发货单
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-07-14 19:23:33
 * @FilePath: /yuxiuproweb/src/api/asc/invoice/index.js
 */
import request from "@/utils/request";

// 查询发货单列表
export function goodsList(query) {
  return request({
    url: "/pro/goods/list",
    method: "get",
    params: query,
  });
}

// 去发货
export function deliverGoods(query) {
  return request({
    url: "/pro/goods/deliverGoods",
    method: "get",
    params: query,
  });
}

// 备货单
export function getPickingList(query) {
  return request({
    url: "/pro/goods/pickingList",
    method: "get",
    params: query,
  });
}

// 新增订单-备货
export function addPicking(data) {
  return request({
    url: "/pro/picking",
    method: "post",
    data: data,
  });
}

// 新增订单-备货
export function getPicking(query) {
  return request({
    url: "/pro/picking/list",
    method: "get",
    params: query,
  });
}

// 详情
export function getInfo(query) {
  return request({
    url: "/md/number/getInfo",
    method: "get",
    params: query,
  });
}

// 发货
export function setNumber(data) {
  return request({
    url: "/md/number",
    method: "post",
    data: data,
  });
}

// 完成发货
export function getNumber(query) {
  return request({
    url: "/md/number",
    method: "get",
    params: query,
  });
}
